package com.ybzl.mini.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/*
 * Desc：污友圈主表实体类
 * @Author xxx
 * @Company yb.com
 * @Since  2024-09-19
 */
@Data
@TableName(value = "mini_pyq")
@ApiModel(value = "MiniPyq", description = "数据实体")
public class MiniPyq {
    /**
     * 主键
     */

    @TableId(value = "id")
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 用户昵称
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value = "用户昵称")
    private String userName;
    /**
     * 用户图像
     */
    @TableField(value = "user_img")
    @ApiModelProperty(value = "用户图像")
    private String userImg;
    /**
     * 说说内容
     */
    @TableField(value = "txt")
    @ApiModelProperty(value = "说说内容")
    private String txt;
    /**
     * 时间
     */
    @TableField(value = "time")
    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    /**
     * 点赞数量
     */
    @TableField(value = "zan")
    @ApiModelProperty(value = "点赞数量")
    private String zan;

    /**
     * 0待审核1审核通过
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "0待审核1审核通过")
    private String status;

    @TableField(exist = false)
    private List<MiniPyqImg> pics;


    @TableField(exist = false)
    private String timestr;

}
